package org.example.cassell_client.service.fallback;

import com.github.pagehelper.PageInfo;
import org.example.cassell_client.service.DeptServiceClient;
import org.example.entity.Base.Result;
import org.springframework.cloud.openfeign.FallbackFactory;

import java.util.List;

public class DeptClientFallbackFactory implements FallbackFactory<DeptServiceClient> {
    @Override
    public DeptServiceClient create(Throwable cause) {
        return new DeptServiceClient() {

            @Override
            public Result<PageInfo> listbypage(int PageNumber, int PageSize) {
                return null;
            }

            @Override
            public List deptl() {
                return List.of();
            }
        };
    }
}
